<%--
  Created by IntelliJ IDEA.
  User: XT
  Date: 2022/5/11
  Time: 16:58
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>前端测试</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/default.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
    <script type="text/javascript" src='easyui/js/outlook2.js'> </script>
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>


</head>
<body>
<div id="dlg" class="easyui-dialog" title="采购信息登记" style="width:450px;height:300px;padding:10px"
     data-options="buttons: '#dlg-buttons',draggable:false">
   <form action="${pageContext.request.contextPath}/CheckServlet" method="post">
       <table align="center">
           <span style="color: red;font-size: 12px;margin-left: 155px">${CheckMsg}</span>
           <tr>
               <td>物品名称</td>
               <td><input id="wpmc" type="text" name="wpmc" placeholder="物品名称"></td>
           </tr>
           <tr>
               <td>物品编号</td>
               <td><input id="wpbh" type="text" name="wpbh" placeholder="物品编号"></td>
           </tr>
           <tr>
               <td>采购数量</td>
               <td><input id="cgsl" type="text" name="cgsl" placeholder="数量"></td>
           </tr>
           <tr>
               <td>登记人</td>
               <td><input id="djr" type="text" readonly="readonly" name="djr" value="${yg.xm}"></td>
           </tr>
           <tr>
               <td></td>
               <td><input type="submit" value="登记" style="margin-left: 50px"></td>
           </tr>

       </table>
   </form>
</div>
<div id="dlg-buttons">
    <a href="${pageContext.request.contextPath}/CGServlet" class="easyui-linkbutton" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
</div>




</body>
<script type="text/javascript">

    $("#wpmc").textbox({
        required:true,
        missingMessage:'该项不能为空',
    });
    $("#wpbh").textbox({
        required:true,
        missingMessage:'该项不能为空',
    });
    $("#cgsl").textbox({
        required:true,
        missingMessage:'该项不能为空',
    });
    $("#djr").textbox({
        required:true,
        missingMessage:'该项不能为空',
    });




</script>
</html>
